import Router from 'koa-router';


const router = new Router();

// 获取计数
router.get('/list/percentage', (ctx) => {
  ctx.body = {
    success: true,
    msg: null,
    result:[
      {
        value: 1,
        name: '正品'
      },
      {
        value: 0.005,
        name: '瑕疵品'
      },
      {
        value: 0.004,
        name: '存疑品'
      }
    ],
  };
});
// 获取计数
router.get('/list/total', (ctx) => {
  ctx.body = {
    success: true,
    msg: null,
    result: [{
      name: '折痕',
      value: 0.02,
    },
    {
      name: '油污',
      value: 0.03,
      url: ''
    },
    {
      name: '水渍',
      value: 0.002,
    },
    {
      name: '锈点',
      value: 0.01
    },
    {
      name: '破洞',
      value: 0.01
    },
    {
      name: '色花',
      value: 0.004
    },
    {
      name: '色差',
      value: 0.002
    },
    {
      name: '霉斑',
      value: 0.02
    },
    {
      name: '色点',
      value: 0.003
    },
    {
      name: '擦伤',
      value: 0.005
    }],
  };
});
export default router;
